import '@css/login.css'
const loginInsruance = document.getElementById('loginInsruance')
loginInsruance.addEventListener('click', () => {
    const userAccount = document.getElementById('userAccount').value
    const userPassWord = document.getElementById('userPassWord').value
    const userNameArr = JSON.parse(localStorage.getItem('admin3'));
    console.log(userNameArr);
    console.log(userNameArr.userName)
    if (userAccount != userNameArr.userAccount) {
        alert('用户不存在')
    } if (userPassWord != userNameArr.userPassWord) {
        alert('密码错误')
    } else {
        alert('登录成功')
        location = 'shopLogin.html'
    }
})